const routes = [
    {
        path: '/flowable/modeler',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/flowable/model/Modeler.vue'),
        meta: {
            titleCode:'',
            title: '模型管理',
            keepAlive: true,
            // 禁用面包屑
            breadcrumb: false,
            root:true
        }
    },
    {
        path: '/flowable/admin',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/flowable/admin/Admin.vue'),
        meta: {
            titleCode:'',
            title: '原生部署管理',
            keepAlive: true,
            // 禁用面包屑
            breadcrumb: false,
            root:true
        }
    },
    {
        path: '/flowable/task',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/flowable/task/Task.vue'),
        meta: {
            titleCode:'',
            title: '原生任务管理',
            // 禁用面包屑
            breadcrumb: false,
            keepAlive: true,
            root:true
        }
    },
    {
        path: '/task/taskToDo',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/task/TaskToDo.vue'),
        meta: {
            titleCode:'',
            title: '我的待办任务',
            keepAlive: true,
            root:true
        }
    },
    {
        path: '/task/taskDo',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/task/TaskDo.vue'),
        meta: {
            titleCode:'',
            title: '我的已办任务',
            keepAlive: true,
            root:true
        }
    },
    {
        path: '/task/taskClaim',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/task/TaskClaim.vue'),
        meta: {
            titleCode:'',
            title: '待签收任务',
            keepAlive: true,
            root:true
        }
    },
    {
        path: '/task/taskUnreachable',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/task/TaskUnreachable.vue'),
        meta: {
            titleCode:'',
            title: '无法认领任务',
            keepAlive: true,
            root:true
        }
    },
    {
        path: '/instance/processInstanceStartedByMe',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/instance/ProcessInstanceStartedByMe.vue'),
        meta: {
            titleCode:'',
            title: '我发起的流程',
            keepAlive: true,
            root:true
        }
    },
    {
        path: '/canStartProcess',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/canstartprocess/CanStartProcess.vue'),
        meta: {
            titleCode:'',
            title: '可发起流程管理',
            keepAlive: true,
            root:true
        }
    },
    {
        path: '/canStartProcess/canStartProcessAdd',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/canstartprocess/CanStartProcessAdd.vue'),
        meta: {
            titleCode:'',
            title: '添加发起流程',
            keepAlive: false,
            root:false
        }
    },
    {
        path: '/canStartProcess/CanStartProcessEdit/:id',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/canstartprocess/CanStartProcessEdit.vue'),
        meta: {
            titleCode:'',
            title: '修改发起流程',
            keepAlive: false,
            root:false
        }
    },
    {
        path: '/startProcessPage',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/canstartprocess/StartProcessPage.vue'),
        meta: {
            titleCode:'',
            title: '发起流程',
            keepAlive: true,
            root:true
        }
    },
    {
        path: '/processDeModel',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/demodel/ProcessDeModel.vue'),
        meta: {
            titleCode:'',
            title: '流程模型设计列表',
            keepAlive: true,
            root:true
        }
    },
    {
        path: '/formDeModel',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/demodel/FormDeModel.vue'),
        meta: {
            titleCode:'',
            title: '表单模型设计列表',
            keepAlive: true,
            root:true
        }
    },
    {
        path: '/formDynamic',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/form/FormDynamic.vue'),
        meta: {
            titleCode:'',
            title: '动态表单',
            keepAlive: true,
            root:true
        }
    },
    {
        path: '/formRelation',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/form/FormRelation.vue'),
        meta: {
            titleCode:'',
            title: '外置表单',
            keepAlive: true,
            root:true
        }
    },
    {
        path: '/formDynamicDetail',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/form/FormDynamicDetail.vue'),
        meta: {
            titleCode:'',
            title: '动态表单详情',
            keepAlive: false,
            root:true
        }
    },
    {
        path: '/formRelationDetail',
        component: () => import((process.env.VUE_APP_PORTALONE == 'true' ? '../../../workflow/src': '@') + '/views/form/FormRelationDetail.vue'),
        meta: {
            titleCode:'',
            title: '外置表单详情',
            keepAlive: false,
            root:true
        }
    },
]
export default routes